<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */

$this->title = Yii::t('app', '管理员信息');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '管理员列表'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="category-index">
    <section class="panel panel-default">
        <header class="panel-heading font-bold">管理员信息</header>
        <div class="panel-body">
            <form class="form-horizontal ajax-submit" method="post" onsubmit="return false;">
                <div class="form-group">
                    <label class="col-sm-1 control-label">管理员账号</label>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" readonly name="User[username]" value="<?= \yii\helpers\ArrayHelper::getValue($info, 'username')?>">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                    <label class="col-sm-1 control-label">昵称</label>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" name="User[name]" value="<?= \yii\helpers\ArrayHelper::getValue($info, 'name')?>">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                </div>
                <div class="line line-dashed line-lg pull-in"></div>

                <div class="form-group">

                    <label class="col-sm-1 control-label">手机</label>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" name="User[mobile]" value="<?= \yii\helpers\ArrayHelper::getValue($info, 'mobile')?>">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                    <label class="col-sm-1 control-label">邮箱</label>
                    <div class="col-sm-2">
                        <input type="text" class="form-control" name="User[email]" value="<?= \yii\helpers\ArrayHelper::getValue($info, 'email')?>">
                        <span class="help-block m-b-none"></span><!--注释表单-->
                    </div>
                </div>

                <div class="line line-dashed line-lg pull-in"></div>

                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="button" class="btn btn-default">取消</button>
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </div>

                <input type="hidden" name="User[id]" value="<?= \yii\helpers\ArrayHelper::getValue($info, 'id')?>">
                <input type="hidden" value="<?php echo Yii::$app->request->csrfToken; ?>" name="<?= Yii::$app->request->csrfParam?>" >
            </form>
        </div>
    </section>


</div>